#pragma warning disable 108
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using Cephei;
using Cephei.Generic;
using Cephei.QL.Models.Marketmodels;
using Cephei.QL.Math;
namespace Cephei.QL.Models.Marketmodels.Products.Multistep
{
     // <summary> 
	// ! Class to model receipt of a fixed cash amount once. Product terminates immediately. Mainly useful as rebate received when another product is cancelled.
	// </summary>
    [Guid ("B9BF9251-B1D5-4619-8BF8-0D30C5912CFC"),ComVisible(true)]
	public interface IMarketModelCashRebate : Cephei.QL.Models.Marketmodels.IMarketModelMultiProduct
	{
		///////////////////////////////////////////////////////////////
        // Methods
        //
        
		 Boolean NextTimeStep(Cephei.QL.Models.Marketmodels.ICurveState currentState, Cephei.IVector<UInt64> numberCashFlowsThisStep, Cephei.IMatrix<Cephei.QL.Models.Marketmodels.IMarketModelMultiProductCashFlow> cashFlowsGenerated);
        
		 Cephei.QL.Models.Marketmodels.IEvolutionDescription Evolution {get;}
        
		 UInt64 MaxNumberOfCashFlowsPerProductPerStep {get;}
        
		 UInt64 NumberOfProducts {get;}
        
		 Cephei.IVector<Double> PossibleCashFlowTimes {get;}
        
		 IMarketModelCashRebate Reset {get;}
        
		 Cephei.IVector<UInt64> SuggestedNumeraires {get;}
    }

    // <summary> 
	// ! Class to model receipt of a fixed cash amount once. Product terminates immediately. Mainly useful as rebate received when another product is cancelled. Factory
	// </summary>
   	[ComVisible(true)]
    public interface IMarketModelCashRebate_Factory // : Collection_Factory<IMarketModelCashRebate, ICell<IMarketModelCashRebate>>
    {
        ///////////////////////////////////////////////////////////////
        // Factory methods
        //
        
	    IMarketModelCashRebate Create (Cephei.QL.Models.Marketmodels.IEvolutionDescription evolution, Cephei.IVector<Double> paymentTimes, Cephei.QL.Math.IMatrix amounts, UInt64 numberOfProducts);
    }
}

